﻿ 

namespace Kernelx.Contexts
{
    using Configuration; 
    using Kernelx.Contexts.Core;

    /// <summary>
    /// 实现高内聚低耦合的核心接口
    /// <para>在程序启动入口处实例化<see cref="WorkloadContextOptions"/>的实现类型</para>
    /// 
    ///<para>全局可通过 <see cref="WorkloadStartupContext"/> 访问实例对象</para>
    /// </summary>
    public interface IWorkloadStartupContext: IWorkloadContext
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="data"></param>
        void SetData(string name, object data);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        object GetData(string name);

    }
}
